package com.lxyk.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
public class Cat {

    @Value("小可爱")
    private String name;

    public void show()
    {
        System.out.println("这个猫的名字是"+name);
    }
}
